<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="lib/vue.js"></script>
</head>
<body>
<div id="root"></div>
</body>
<script type="module">
  import Vue from './vue.js';
  const data = {
    num :1
  }
  const vm = new Vue({
    data,
    methods:{
      fn(){
        console.log(this.num)
      }
    }
  });
  console.log(vm.num);
  vm.num= 100;
  vm.fn();

</script>
</html>